<script>

    /**
     * 直接提货
     * @param order_id
     * @param delivery_code
     */
    function communityOrderTakedelivery(order_id, delivery_code){
        layer.confirm('确定要直接提货吗?', {title:'提示'},function() {
            $.ajax({
                url: ns.url("shop/verify/verify"),
                data: {order_id : order_id, verify_code: delivery_code},
                dataType: 'JSON',
                type: 'POST',
                success: function(res) {
                    layer.msg(res.message);

                    if (res.code >= 0) {
                        location.reload();
                    }
                }
            });
        }, function () {
            layer.close();
        });
    }
</script>